﻿package divtastic.f9
{
    
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    
    public class OneTime
    {
        
        
        public static function RUN( fun_: Function, milliSec_: int )
        {
            
            var once: Timer = new Timer( milliSec_, 1);
            var fun = fun_;
            var run = function( e: TimerEvent )
            {
                
                once.removeEventListener( TimerEvent.TIMER, run );
                fun();
                
            }
            once.addEventListener( TimerEvent.TIMER, run );
            once.start();
            
        }
        
    }
    
    
}



